﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

using ZhimeiSoft.CharmManager.DOL;

namespace ZhimeiSoft.CharmManager.Server.DAL.Interface
{
    public interface IEmployeeDAL
    {
        /// <summary>
        /// 新增员工信息
        /// </summary>
        /// <param name="employee">员工信息实体类</param>
        /// <returns>员工ID</returns>
        void InsertEmployee(DBEntityEmployee employee);

        /// <summary>
        /// 更新员工信息
        /// </summary>
        /// <param name="employee">员工信息实体类</param>
        void UpdateEmployee(DBEntityEmployee employee);

        /// <summary>
        /// 删除员工信息
        /// </summary>
        /// <param name="employeeid">员工ID</param>
        void DeleteEmployee(int employeeid);
        /// <summary>
        /// 根据状态查询员工列表
        /// </summary>
        /// <param name="state">状态信息</param>
        /// <returns>返回数据</returns>
        DataSet QueryEmployeeState(string state);
        /// <summary>
        /// 根据条件过滤员工信息
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        DataSet QeuryEmployeeFilter(string filter);
    }
}
